<template>
  <div id="vueui-login-index">
    <div class="one-block-1">
      <span>
          1. 登录
      </span>
    </div>  
    <div class="one-block-2">
      <a-space>
        <a-button @click="loginWindow()">切换为登录窗口</a-button>
      </a-space>
    </div>
  </div>
</template>
<script>
import { ipcApiRoute } from '@/utils/ipcMainApi';
import { ipc } from '@/utils/ipcRenderer';

export default {
  data() {
    return {
    };
  },
  methods: {
    loginWindow () {
      this.$router.push({ name: 'SpecialLoginWindow', params: {}});
      ipc.invoke(ipcApiRoute.loginWindow, {width: 400, height: 300,windowTitle:"登录"}).then(r => {      
        console.log("打开登录接口返回：",r)
      })
    },
  }
};
</script>
<style lang="less" scoped>
#vueui-login-index {
  padding: 0px 10px;
  text-align: left;
  width: 100%;
  .one-block-1 {
      font-size: 16px;
      padding-top: 10px;
  }
  .one-block-2 {
      padding-top: 10px;
  }
}
</style>
  